package a.f.j.a;

import a.c.d;
import a.c.e;
import a.c.q;
import a.c.z;
import a.f.j.cb;
import a.f.j.o;

import java.util.Iterator;

public class n
  extends m
{
  cb b;
  e[] d = null;
  public static int e;
  
  public n() {}
  
  public n(cb paramcb)
  {
    super(paramcb.a());
    int[] arrayOfInt = new int[this.a.k()];
    Object localObject1 = paramcb.b();
    Object localObject2;
    label161:
    label163:
    do
    {
      do
      {
        if (!((o)localObject1).e()) {
          break label166;
        }
        a.f.j.n localn = ((o)localObject1).a();
        j = localn.a().k();
        if (bool2) {
          break label191;
        }
        if (bool1) {
          break label182;
        }
        localObject2 = localn.a();
        do
        {
          if (!((a.c.m)localObject2).e()) {
            break;
          }
          d locald = ((a.c.m)localObject2).a();
          arrayOfInt[locald.e().f()] = Math.max(arrayOfInt[locald.e().f()], j);
          ((a.c.m)localObject2).f();
          if (bool2) {
            break label163;
          }
          if (bool1) {
            break label161;
          }
        } while (!bool1);
      } while (bool2);
      ((o)localObject1).f();
    } while (!bool1);
    label166:
    if (!bool2) {
      this.d = this.a.t();
    }
    label182:
    label191:
    localObject1 = new z[this.a.m() * 2];
    int i = 0;
    do
    {
      do
      {
        if (i >= arrayOfInt.length) {
          break;
        }
        if (!bool2) {
          if (localObject1[arrayOfInt[i]] == null) {
            localObject1[arrayOfInt[i]] = new z();
          }
        }
        localObject1[arrayOfInt[i]].add(this.d[i]);
        i++;
      } while (!bool1);
      i = this.d.length - 1;
    } while (bool2);
    int j = 0;
    label355:
    label357:
    do
    {
      do
      {
        if (j >= localObject1.length) {
          break;
        }
        if ((bool2) || (localObject1[j] != null))
        {
          localObject2 = localObject1[j].iterator();
          do
          {
            if (!((Iterator)localObject2).hasNext()) {
              break;
            }
            this.d[i] = ((e)((Iterator)localObject2).next());
            i--;
            if (bool2) {
              break label357;
            }
            if (bool1) {
              break label355;
            }
          } while (!bool1);
        }
        if (!bool2) {
          j++;
        }
      } while (!bool1);
    } while (bool2);
    if ((bool2) || (q.n))
    {
      if (!bool2) {}
      c.h = !bool1;
    }
    if (q.o) {
      c.i = !bool2;
    }
  }
  
  public n(q paramq)
  {
    super(paramq);
  }
  
  protected void a() {}
  
  Iterator c()
  {
    if ((c.i) || (this.d == null)) {
      return super.c();
    }
    new Iterator()
    {
      int a = 0;
      
      public boolean hasNext()
      {
        if (!c.i) {}
        return this.a < n.this.d.length;
      }
      
      public Object next()
      {
        this.a += 1;
        return n.this.d[(this.a - 1)];
      }
      
      public void remove() {}
    };
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.j.a.n

 * JD-Core Version:    0.7.0.1

 */